package com.activity.adapter;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.activity.CategoryActivity;
import com.activity.SubCategoryListActivity;
import com.activity.bean.CategoryBean;
import com.activity.bean.OpusBean;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.example.apple.ddhr_new.R;
import com.example.apple.ddhr_new.adapter.BaseAdapter;
import com.example.apple.ddhr_new.utils.ActivityUtil;

import java.util.ArrayList;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import co.lujun.androidtagview.TagContainerLayout;
import co.lujun.androidtagview.TagView;

public class TagAdapter extends BaseAdapter<String> {




    public TagAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder<String> getViewHolder(int viewType, View view) {

        return new PersonalHolder(view);
    }





    @Override
    public int getChildViewType(int groupPosition, int childPosition) {
        return TYPE_CHILD;
    }

    @Override
    public int getChildLayout(int viewType) {
        return R.layout.item_string;
    }






    public class PersonalHolder extends BaseViewHolder<String> {

        @BindView(R.id.tv_name)
        TextView tv_name;


        public PersonalHolder(@NonNull View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }

        public void setData(String data) {


            tv_name.setText(data);

        }


    }


}
